package Rangel.common.world.sorter;

import rescuecore2.misc.Pair;

import java.util.Comparator;
import Rangel.common.world.info.LineInfo;


public class IntersectionSorter implements Comparator<Pair<LineInfo, Double>>, java.io.Serializable {//
    @Override
    public int compare(Pair<LineInfo, Double> a, Pair<LineInfo, Double> b) {
        double d1 = a.second();
        double d2 = b.second();
        return Double.compare(d1, d2);
    }
}